home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.uvm.abt.edit;
-
- import java.beans.PropertyEditorSupport;
- import sun.beans.editors.BoolEditor;
-
- public class JavaLangBooleanEditor extends BoolEditor {
- public String getAsText() {
- return ((PropertyEditorSupport)this).getValue() == null ? "False" : super.getAsText();
- }
-
- public String getJavaInitializationString() {
- return (Boolean)((PropertyEditorSupport)this).getValue() ? "new java.lang.Boolean(true)" : "new java.lang.Boolean(false)";
- }
- }
-